package com.dfk.bs.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用电器表
 * </p>
 *
 * @author DDK
 * @since 2019-12-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Eleapp对象", description="用电器表")
public class Eleapp implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "eleappid", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用电器标识符")
    private String eleappcode;

    @ApiModelProperty(value = "房间号")
    private String roomcode;

    @ApiModelProperty(value = "门牌号")
    private String housecode;


    @ApiModelProperty(value = "用电器名称")
    private String name;

    @ApiModelProperty(value = "用电器状态")
    private String status;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "注释")
    private String remark;

    @ApiModelProperty(value = "操作人")
    private String createby;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createtime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatetime;

    @ApiModelProperty(value = "逻辑删除 1（true）已删除， 0（false）未删除")
    @TableLogic
    private Integer isDeleted;


}
